<%@ page import="org.jsecurity.web.filter.authc.FormAuthenticationFilter" %>
<%@include file="/WEB-INF/pages/commons/commons.jsp"%>

<fmt:message var="title" key="login.jsp.title" />
<stripes:layout-render name="${_themePath}/basic-layout.jsp" _title="${title}">
    <stripes:layout-component name="_topNav">
        <H1>Login</H1>
        <UL class="gc-topnav-tabs">
            <LI>&nbsp;</LI>
        </UL>
    </stripes:layout-component>


    <stripes:layout-component name="_content">
        <h2>&nbsp;</h2>
        <!-- error messages -->
        <c_rt:if test="<%=request.getAttribute(FormAuthenticationFilter.DEFAULT_ERROR_KEY_ATTRIBUTE_NAME) != null%>">
            <fmt:message key="stripes.errors.header" />
            <fmt:message key="stripes.errors.beforeError"/>
            <fmt_rt:message key="<%=(String)request.getAttribute(FormAuthenticationFilter.DEFAULT_ERROR_KEY_ATTRIBUTE_NAME)%>" />
            <fmt:message key="stripes.errors.afterError"/>
            <fmt:message key="stripes.errors.footer"/>
        </c_rt:if>

        <stripes:messages/>
        <stripes:errors globalErrorsOnly="true"/>
        <stripes:form method="POST" beanclass="foo.bar.blog.web.action.general.LoginActionBean">
            <p><stripes:errors/></p>
            <center>
            <table>
                <tr>
                    <td><stripes:label for="username"/></td>
                    <td><stripes:text name="username"/></td>
                </tr>
                <tr>
                    <td><stripes:label for="password"/></td>
                    <td><stripes:password name="password"/></td>
                </tr>
                <tr>
                    <td><stripes:label for="rememberMe"/></td>
                    <td><stripes:checkbox name="rememberMe"/></td>
                </tr>
                <tr>
                    <td colspan="2"><stripes:submit name="login"><fmt:message key="login.jsp.submit"/></stripes:submit></td>
                </tr>
            </table>
            </center>
        </stripes:form>
    </stripes:layout-component>
</stripes:layout-render>





